Drop gdk_surface_show and gdk_surface_resize
authorMatthias Clasen <mclasen@redhat.com>
Wed, 4 Mar 2020 00:03:39 +0000 (16:03 -0800)
committerMatthias Clasen <mclasen@redhat.com>
Thu, 12 Mar 2020 18:56:21 +0000 (14:56 -0400)
We can now use GdkDragIcon api for the last cases
where this was used.

gdk/gdkinternals.h
gdk/gdksurface.c
gdk/gdksurface.h

index 4702f7ec9e455bf85ca7a2ee2d3d5c639de7cfdc..48c0c63c1b50ed01a6c008ee09ad757f781158ea 100644 (file)
@@ -182,6 +182,7 @@ void gdk_surface_get_unscaled_size (GdkSurface *surface,
                                     int *unscaled_height);
 gboolean gdk_surface_handle_event (GdkEvent       *event);
 
+void gdk_surface_show (GdkSurface *surface);
 
 /*****************************************
  * Interfaces provided by windowing code *
index 850826ea85a891d2b9ce21f10966ce045bc15ed0..b9fbb928a2469fee55005b0c6ac15c0bddef0b8e 100644 (file)
@@ -1915,8 +1915,6 @@ gdk_surface_show_internal (GdkSurface *surface, gboolean raise)
 void
 gdk_surface_show (GdkSurface *surface)
 {
-  g_return_if_fail (surface->surface_type != GDK_SURFACE_POPUP);
-
   gdk_surface_show_internal (surface, TRUE);
 }
 
@@ -1985,26 +1983,6 @@ G_GNUC_END_IGNORE_DEPRECATIONS
   surface->y = 0;
 }
 
-/**
- * gdk_surface_resize:
- * @surface: a #GdkSurface
- * @width: new width of the surface
- * @height: new height of the surface
- *
- * Resizes @surface; for toplevel surfaces, asks the window manager to resize
- * the surface. The window manager may not allow the resize. When using GTK,
- * use gtk_window_resize() instead of this low-level GDK function.
- *
- * Surfaces may not be resized below 1x1.
- */
-void
-gdk_surface_resize (GdkSurface *surface,
-                    gint       width,
-                    gint       height)
-{
-  GDK_SURFACE_GET_CLASS (surface)->toplevel_resize (surface, width, height);
-}
-
 static gboolean
 gdk_popup_surface_present (GdkPopup       *popup,
                            int             width,
index 1f4e6e1e446d994c371fcd9c8df6772eceda8fef..a6e1aaeb0d5f87ab8fce7a2993df2579cf2328ab 100644 (file)
@@ -353,13 +353,7 @@ gboolean      gdk_surface_is_destroyed          (GdkSurface     *surface);
 GDK_AVAILABLE_IN_ALL
 GdkDisplay *  gdk_surface_get_display           (GdkSurface     *surface);
 GDK_AVAILABLE_IN_ALL
-void          gdk_surface_show                  (GdkSurface     *surface);
-GDK_AVAILABLE_IN_ALL
 void          gdk_surface_hide                  (GdkSurface     *surface);
-GDK_AVAILABLE_IN_ALL
-void          gdk_surface_resize                (GdkSurface     *surface,
-                                                 gint           width,
-                                                 gint           height);
 
 GDK_AVAILABLE_IN_ALL
 void          gdk_surface_set_input_region      (GdkSurface     *surface,